﻿namespace Filters.Demo.Core.FilterConfiguration
{
    using System.Collections.ObjectModel;
    using System.Xml.Serialization;

    /// <summary>
    /// FilterParameterElement class
    /// </summary>
    [XmlRoot("filterParameter")]
    public class FilterParameterElement
    {
        public FilterParameterElement()
        {
            this.FilterParameterValues = new Collection<FilterParameterValueElement>();
        }

        [XmlAttribute("name")]
        public string Name { get; set; }

        [XmlAttribute("type")]
        public string Type { get; set; }

        [XmlAttribute("value")]
        public string Value { get; set; }

        [XmlElement("filterParameterValue")]
        public Collection<FilterParameterValueElement> FilterParameterValues { get; set; }
    }
}
